/*
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
 * All portions are Copyright (C) 2008-2014 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
*/
package com.mes.data;

import com.eam.data.EamSpareparts;
import com.eam.data.EamSparepartsCollar;
import com.eam.data.EamSparepartsInventory;
import com.mes.manufacture.data.EmesoDCRouteOprRelation;
import com.mes.quality.data.EmesqQualityROR;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.openbravo.base.structure.ActiveEnabled;
import org.openbravo.base.structure.BaseOBObject;
import org.openbravo.base.structure.ClientEnabled;
import org.openbravo.base.structure.OrganizationEnabled;
import org.openbravo.base.structure.Traceable;
import org.openbravo.model.ad.access.User;
import org.openbravo.model.ad.system.Client;
import org.openbravo.model.common.enterprise.Organization;
/**
 * Entity class for entity Emes_ProcessOpr (stored in table Emes_ProcessOpr).
 *
 * NOTE: This class should not be instantiated directly. To instantiate this
 * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 */
public class EmesProcessOpr extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
    private static final long serialVersionUID = 1L;
    public static final String TABLE_NAME = "Emes_ProcessOpr";
    public static final String ENTITY_NAME = "Emes_ProcessOpr";
    public static final String PROPERTY_ID = "id";
    public static final String PROPERTY_CODE = "code";
    public static final String PROPERTY_NAME = "name";
    public static final String PROPERTY_DESCRIPTION = "description";
    public static final String PROPERTY_WAGECALCULATIONCATEGORY = "wageCalculationCategory";
    public static final String PROPERTY_ORGANIZATION = "organization";
    public static final String PROPERTY_CLIENT = "client";
    public static final String PROPERTY_ACTIVE = "active";
    public static final String PROPERTY_CREATIONDATE = "creationDate";
    public static final String PROPERTY_CREATEDBY = "createdBy";
    public static final String PROPERTY_UPDATED = "updated";
    public static final String PROPERTY_UPDATEDBY = "updatedBy";
    public static final String PROPERTY_IMAGEURL = "imageUrl";
    public static final String PROPERTY_INSTRUCTIONURL = "instructionUrl";
    public static final String PROPERTY_PROCESSCODE = "processCode";
    public static final String PROPERTY_PIECEPRICE = "piecePrice";
    public static final String PROPERTY_TIMEPRICE = "timePrice";
    public static final String PROPERTY_RFIDTYPE = "rfidType";
    public static final String PROPERTY_RFIDIP = "rfidIp";
    public static final String PROPERTY_EAMSPAREPARTSLIST = "eamSparepartsList";
    public static final String PROPERTY_EAMSPAREPARTSCOLLARLIST = "eamSparepartsCollarList";
    public static final String PROPERTY_EAMSPAREPARTSINVENTORYLIST = "eamSparepartsInventoryList";
    public static final String PROPERTY_EMESDCINPUTPAGELIST = "emesDcInputPageList";
    public static final String PROPERTY_EMESPOORENTRYLIST = "emesPoorEntryList";
    public static final String PROPERTY_EMESPROCESSLIST = "emesProcessList";
    public static final String PROPERTY_EMESPROCESSOPRUSERLIST = "emesProcessOprUserList";
    public static final String PROPERTY_EMESPRODUCTMODELLIST = "emesProductModelList";
    public static final String PROPERTY_EMESUSERPOSTIONLIST = "emesUserPostionList";
    public static final String PROPERTY_EMESODCROUTEOPRRELATIONLIST = "emesoDCRouteOprRelationList";
    public static final String PROPERTY_EMESQQUALITYRORLIST = "emesqQualityRORList";

    public EmesProcessOpr() {
        setDefaultValue(PROPERTY_ACTIVE, true);
        setDefaultValue(PROPERTY_CREATIONDATE, new Date());
        setDefaultValue(PROPERTY_EAMSPAREPARTSLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EAMSPAREPARTSCOLLARLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EAMSPAREPARTSINVENTORYLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESDCINPUTPAGELIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESPOORENTRYLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESPROCESSLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESPROCESSOPRUSERLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESPRODUCTMODELLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESUSERPOSTIONLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESODCROUTEOPRRELATIONLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESQQUALITYRORLIST, new ArrayList<Object>());
    }

    @Override
    public String getEntityName() {
        return ENTITY_NAME;
    }

    public String getId() {
        return (String) get(PROPERTY_ID);
    }

    public void setId(String id) {
        set(PROPERTY_ID, id);
    }

    public String getCode() {
        return (String) get(PROPERTY_CODE);
    }

    public void setCode(String code) {
        set(PROPERTY_CODE, code);
    }

    public String getName() {
        return (String) get(PROPERTY_NAME);
    }

    public void setName(String name) {
        set(PROPERTY_NAME, name);
    }

    public String getDescription() {
        return (String) get(PROPERTY_DESCRIPTION);
    }

    public void setDescription(String description) {
        set(PROPERTY_DESCRIPTION, description);
    }

    public String getWageCalculationCategory() {
        return (String) get(PROPERTY_WAGECALCULATIONCATEGORY);
    }

    public void setWageCalculationCategory(String wageCalculationCategory) {
        set(PROPERTY_WAGECALCULATIONCATEGORY, wageCalculationCategory);
    }

    public Organization getOrganization() {
        return (Organization) get(PROPERTY_ORGANIZATION);
    }

    public void setOrganization(Organization organization) {
        set(PROPERTY_ORGANIZATION, organization);
    }

    public Client getClient() {
        return (Client) get(PROPERTY_CLIENT);
    }

    public void setClient(Client client) {
        set(PROPERTY_CLIENT, client);
    }

    public Boolean isActive() {
        return (Boolean) get(PROPERTY_ACTIVE);
    }

    public void setActive(Boolean active) {
        set(PROPERTY_ACTIVE, active);
    }

    public Date getCreationDate() {
        return (Date) get(PROPERTY_CREATIONDATE);
    }

    public void setCreationDate(Date creationDate) {
        set(PROPERTY_CREATIONDATE, creationDate);
    }

    public User getCreatedBy() {
        return (User) get(PROPERTY_CREATEDBY);
    }

    public void setCreatedBy(User createdBy) {
        set(PROPERTY_CREATEDBY, createdBy);
    }

    public Date getUpdated() {
        return (Date) get(PROPERTY_UPDATED);
    }

    public void setUpdated(Date updated) {
        set(PROPERTY_UPDATED, updated);
    }

    public User getUpdatedBy() {
        return (User) get(PROPERTY_UPDATEDBY);
    }

    public void setUpdatedBy(User updatedBy) {
        set(PROPERTY_UPDATEDBY, updatedBy);
    }

    public String getImageUrl() {
        return (String) get(PROPERTY_IMAGEURL);
    }

    public void setImageUrl(String imageUrl) {
        set(PROPERTY_IMAGEURL, imageUrl);
    }

    public String getInstructionUrl() {
        return (String) get(PROPERTY_INSTRUCTIONURL);
    }

    public void setInstructionUrl(String instructionUrl) {
        set(PROPERTY_INSTRUCTIONURL, instructionUrl);
    }

    public String getProcessCode() {
        return (String) get(PROPERTY_PROCESSCODE);
    }

    public void setProcessCode(String processCode) {
        set(PROPERTY_PROCESSCODE, processCode);
    }

    public BigDecimal getPiecePrice() {
        return (BigDecimal) get(PROPERTY_PIECEPRICE);
    }

    public void setPiecePrice(BigDecimal piecePrice) {
        set(PROPERTY_PIECEPRICE, piecePrice);
    }

    public BigDecimal getTimePrice() {
        return (BigDecimal) get(PROPERTY_TIMEPRICE);
    }

    public void setTimePrice(BigDecimal timePrice) {
        set(PROPERTY_TIMEPRICE, timePrice);
    }

    public String getRfidType() {
        return (String) get(PROPERTY_RFIDTYPE);
    }

    public void setRfidType(String rfidType) {
        set(PROPERTY_RFIDTYPE, rfidType);
    }

    public String getRfidIp() {
        return (String) get(PROPERTY_RFIDIP);
    }

    public void setRfidIp(String rfidIp) {
        set(PROPERTY_RFIDIP, rfidIp);
    }

    @SuppressWarnings("unchecked")
    public List<EamSpareparts> getEamSparepartsList() {
      return (List<EamSpareparts>) get(PROPERTY_EAMSPAREPARTSLIST);
    }

    public void setEamSparepartsList(List<EamSpareparts> eamSparepartsList) {
        set(PROPERTY_EAMSPAREPARTSLIST, eamSparepartsList);
    }

    @SuppressWarnings("unchecked")
    public List<EamSparepartsCollar> getEamSparepartsCollarList() {
      return (List<EamSparepartsCollar>) get(PROPERTY_EAMSPAREPARTSCOLLARLIST);
    }

    public void setEamSparepartsCollarList(List<EamSparepartsCollar> eamSparepartsCollarList) {
        set(PROPERTY_EAMSPAREPARTSCOLLARLIST, eamSparepartsCollarList);
    }

    @SuppressWarnings("unchecked")
    public List<EamSparepartsInventory> getEamSparepartsInventoryList() {
      return (List<EamSparepartsInventory>) get(PROPERTY_EAMSPAREPARTSINVENTORYLIST);
    }

    public void setEamSparepartsInventoryList(List<EamSparepartsInventory> eamSparepartsInventoryList) {
        set(PROPERTY_EAMSPAREPARTSINVENTORYLIST, eamSparepartsInventoryList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesDcInputPage> getEmesDcInputPageList() {
      return (List<EmesDcInputPage>) get(PROPERTY_EMESDCINPUTPAGELIST);
    }

    public void setEmesDcInputPageList(List<EmesDcInputPage> emesDcInputPageList) {
        set(PROPERTY_EMESDCINPUTPAGELIST, emesDcInputPageList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesPoorEntry> getEmesPoorEntryList() {
      return (List<EmesPoorEntry>) get(PROPERTY_EMESPOORENTRYLIST);
    }

    public void setEmesPoorEntryList(List<EmesPoorEntry> emesPoorEntryList) {
        set(PROPERTY_EMESPOORENTRYLIST, emesPoorEntryList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesProcess> getEmesProcessList() {
      return (List<EmesProcess>) get(PROPERTY_EMESPROCESSLIST);
    }

    public void setEmesProcessList(List<EmesProcess> emesProcessList) {
        set(PROPERTY_EMESPROCESSLIST, emesProcessList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesProcessOprUser> getEmesProcessOprUserList() {
      return (List<EmesProcessOprUser>) get(PROPERTY_EMESPROCESSOPRUSERLIST);
    }

    public void setEmesProcessOprUserList(List<EmesProcessOprUser> emesProcessOprUserList) {
        set(PROPERTY_EMESPROCESSOPRUSERLIST, emesProcessOprUserList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesProductModel> getEmesProductModelList() {
      return (List<EmesProductModel>) get(PROPERTY_EMESPRODUCTMODELLIST);
    }

    public void setEmesProductModelList(List<EmesProductModel> emesProductModelList) {
        set(PROPERTY_EMESPRODUCTMODELLIST, emesProductModelList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesUserPostion> getEmesUserPostionList() {
      return (List<EmesUserPostion>) get(PROPERTY_EMESUSERPOSTIONLIST);
    }

    public void setEmesUserPostionList(List<EmesUserPostion> emesUserPostionList) {
        set(PROPERTY_EMESUSERPOSTIONLIST, emesUserPostionList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesoDCRouteOprRelation> getEmesoDCRouteOprRelationList() {
      return (List<EmesoDCRouteOprRelation>) get(PROPERTY_EMESODCROUTEOPRRELATIONLIST);
    }

    public void setEmesoDCRouteOprRelationList(List<EmesoDCRouteOprRelation> emesoDCRouteOprRelationList) {
        set(PROPERTY_EMESODCROUTEOPRRELATIONLIST, emesoDCRouteOprRelationList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesqQualityROR> getEmesqQualityRORList() {
      return (List<EmesqQualityROR>) get(PROPERTY_EMESQQUALITYRORLIST);
    }

    public void setEmesqQualityRORList(List<EmesqQualityROR> emesqQualityRORList) {
        set(PROPERTY_EMESQQUALITYRORLIST, emesqQualityRORList);
    }

}
